﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UNSWThink
{
   /// <summary>
   /// Object that represents a Teaches entry in the database
   /// </summary>
   public class Teaches
   {
      private int id;
      private int accountID;
      private int classID;

      /// <summary>
      /// Default constructor
      /// </summary>
      public Teaches()
      {
         id = 0;
         accountID = 0;
         classID = 0;
      }

      /// <summary>
      /// Alternate constructor
      /// </summary>
      /// <param name="id">
      /// ID of the record
      /// </param>
      /// <param name="accountID">
      /// ID of the related account
      /// </param>
      /// <param name="classID">
      /// ID of the related class</param>
      public Teaches(int id, int accountID, int classID)
      {
         this.id = id;
         this.accountID = accountID;
         this.classID = classID;
      }

      /// <summary>
      /// Gets or sets the ID
      /// </summary>
      public int ID
      {
         get
         {
            return id;
         }
         set
         {
            id = value;
         }
      }

      /// <summary>
      /// Gets or sets the account ID
      /// </summary>
      public int AccountID
      {
         get
         {
            return accountID;
         }
         set
         {
            accountID = value;
         }
      }

      /// <summary>
      /// Gets or sets the class ID
      /// </summary>
      public int ClassID
      {
         get
         {
            return classID;
         }
         set
         {
            classID = value;
         }
      }
   }
}
